﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SEVN.Web.Framework.Modules.News
{
    public partial class Link0201 : System.Web.UI.UserControl
    {
        WebFrameDataContext web = new WebFrameDataContext();
        protected void Page_Load(object sender, EventArgs e)
        {
            DropDownList1.DataSource = web.Links.Where(x => x.IsShow == true); ;
            DropDownList1.DataBind();

            rptListLink.DataSource = web.Links.Where(x => x.IsShow == false).Take(6);
            rptListLink.DataBind();
        }
    }
}